#ifndef SETTINGCTL_H
#define SETTINGCTL_H

#include <QMainWindow>
#include <QtGui>
#include <QPen>
#include <QBrush>
#include <QSettings>
#include <QComboBox>
#include <qDebug>
#include "graphicsPanel.h"


class SettingCtl : public QObject {
    Q_OBJECT

public:
        SettingCtl(QWidget *parent = 0, GraphicsPanel *gp = 0, int panel_no = 1);
		~SettingCtl();
        void  setCtlpanel(
	    	QPushButton *exec,
	    	QComboBox  *align1,
	    	QComboBox  *align2,
	    	QLineEdit  *scene_x,
	    	QLineEdit  *scene_y,
	    	QLineEdit  *scene_w,
	    	QLineEdit  *scene_h,
	    	QPushButton  *bgc,
	    	QPushButton  *fgc,
	    	QComboBox    *draw_ptn,
	    	QLineEdit    *draw_size,
	    	QLineEdit    *scale_x,
	    	QLineEdit    *scale_y,
	    	QLineEdit    *rotay
	    );
    	
	    	

public slots:
        void slotDrawExec();
	    void slotBgcSet();

private:
        void writeSettings();
		void readSettings();
	GraphicsPanel *graphicspanel;
	          int panel_no;
	    	QPushButton *exec;
	    	QComboBox  *align1;
	    	QComboBox  *align2;
	    	QLineEdit  *scene_x;
	    	QLineEdit  *scene_y;
	    	QLineEdit  *scene_w;
	    	QLineEdit  *scene_h;
	    	QPushButton  *bgc;
	    	QPushButton  *fgc;
	    	QComboBox    *draw_ptn;
	    	QLineEdit    *draw_size;
	    	QLineEdit    *scale_x;
	    	QLineEdit    *scale_y;
	    	QLineEdit    *rotay;
	


};

#endif
